package com.papercutting.platform.util;

/**
 * 密码测试工具类
 * 用于验证密码处理逻辑
 */
public class PasswordTestUtil {
    
    public static void main(String[] args) {
        // 测试明文密码比较
        String inputPassword = "admin";
        String storedPassword = "admin";
        
        System.out.println("输入密码: " + inputPassword);
        System.out.println("存储密码: " + storedPassword);
        System.out.println("密码匹配结果: " + inputPassword.equals(storedPassword));
        
        // 测试BCrypt密码比较
        String bcryptPassword = "$2a$10$OT2saVsR3sRrADMrfqi15OOqVj/.cI9G54xJ2UCScdzt9lemPwX5e";
        System.out.println("BCrypt密码: " + bcryptPassword);
        System.out.println("BCrypt密码前缀检查: " + bcryptPassword.startsWith("$2a$"));
    }
}